package com.yayan.beautyclub.service;

import java.util.List;

import com.yayan.beautyclub.bean.User;

public interface IUserService {
	/**
	 * 根据uId查找用户信息
	 * @param uId
	 * @return
	 */
	public User findUserById(long uId);
	
	/**
	 * 根据openId查询用户信息
	 * @param openId
	 * @return
	 */
	public User findUserByopenId(String openId);
	
	/**
	 * 插入用户openId
	 * @param openId
	 * @return
	 */
	public long saveUser(String openId);
	
	/**
	 * 根据uId更新用户信息
	 * @param uId
	 * @param user
	 * @return
	 */
	public boolean updateUser(long uId, User user);
	
	/**
	 * 根据uId更新用户电话与姓名
	 * @param uId
	 * @param user
	 * @return
	 */
	public boolean setPhoneAndName(long uId, User user);
	
	/**
	 * 分页查询用户信息
	 * @param page
	 * @param size
	 * @return
	 */
	public List<User> findUserByCondition(int page, int size);
}
